<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Render Survey Data</title>
</head>
<body>
<h2>DataFrame representation:</h2>
<!-- You've to mark your data as safe, otherwise it'll be rendered as a string -->
{{ data|safe }}
</body>
</html>